<div class="service-buttons-container">
    <?php foreach ($portal->getEnabledAndPublishedServiceButtons() as $button): ?>
        <div class="service-button horizontal">
            <a href="<?php echo url_for('render_serv_button_action', $button).
                        '?content_id='.$content->getId()
                    ?>">
                <img alt="<?php echo $button->getType()->getType() ?>"
                     src="<?php echo '/uploads/portal_'.$button->getPortal()->getId().'/images/'.
                                     ($hasBigScreen ? $button->getThumbBig() : $button->getThumbSmall()) ?>">
            </a>
        </div>
    <?php endforeach; ?>
</div>